Method and apparatus for synchronized treatment of obstructive sleep apnea

ABSTRACT

A method and device is provided for stimulation of an upper airway muscle of a patient to relieve an airway obstruction in which stimulation is synchronized with the inspiratory phase of the patient&#39;s respiratory cycle. A respiratory effort waveform of the patient is monitored for a changes in slope and amplitude of the respiratory effort waveform characteristic of the inspiratory phase. Stimulation is then commenced and concluded according to the detected inspiratory phase.

BACKGROUND OF THE INVENTION

The present invention relates to medical devices which employ electrical stimulation in the treatment of sleep apnea.

Sleep apnea has been known for some time as a medical syndrome in two generally recognized forms. The first is central sleep apnea, which is associated with the failure of the body to automatically generate the neuro-muscular stimulation necessary to initiate and control a respiratory cycle at the proper time. Work associated with employing electrical stimulation to treat this condition is discussed in Glenn, "Diaphragm Pacing: Present Status", Pace, V. I, pp 357-370 (July-September, 1978).

The second sleep apnea syndrome is known as obstructive sleep apnea. Ordinarily, the contraction of the dilator muscles of the upper airways (nose and pharynx) allows their patency at the time of inspiration. In obstructive sleep apnea, the obstruction of the airways results in a disequilibrium between the forces which tend to their collapse (negative inspiratory transpharyngeal pressure gradient) and those which contribute to their opening (muscle contraction). The mechanisms which underlie the triggering of obstructive apnea include a reduction in the size of the superior airways, an increase in their compliance, and a reduction in the activity of the muscle dilator. The muscle dilators are intimately linked to the respiratory muscles and these muscles respond in a similar manner to a stimulation or a depression of the respiratory center. The ventilatory fluctuations observed during sleep (alternately hyper and hypo ventilation of periodic respiration) thus favors an instability of the superior airways and the occurrence of oropharyngeal obstruction. The respiratory activation of the genioglossus has been particularly noted to be ineffective during sleep. The cardiovascular consequences of apnea include disorders of cardiac rhythm (bradycardia, auriculoventricular block, ventricular extrasystoles) and hemodynamic (pulmonary and systemic hypertension). This results in a stimulatory metabolic and mechanical effect on the autonomic nervous system. The electroencephalographic awakening which precedes the easing of obstruction of the upper airways is responsible for the fragmentation of sleep. The syndrome is therefore associated with an increased morbidity (the consequence of diurnal hypersomnolence and cardiovascular complications).

A method for treatment of obstructive sleep-apnea syndrome is to generate electrical signals to stimulate those nerves which activate the patient's upper airway muscles in order to maintain upper airway patency. For example, in U.S. Pat. No. 4,830,008 to Meer, inspiratory effort is monitored and electrical signals are directed to upper airway muscles in response to the monitored inspiratory effort. Or, in U.S. Pat. No. 5,123,425 a collar contains a sensor to monitor respiratory functioning to detect an apnea episode and an electronics module which generates electrical bursts to electrodes located on the collar. The electrical bursts are transferred transcutaneously from the electrodes to the nerves innervating the upper airway muscles. Or in U.S. Pat. No. 5,174,287 issued to Kallok, sensors monitor the electrical activity associated with contractions of the diaphragm and also the pressure within the thorax and the upper airway. Whenever electrical activity of the diaphragm suggests that an inspiration cycle is in progress and the pressure sensors show an abnormal pressure differential across the airway, the presence of obstructive sleep apnea is assumed and electrical stimulation is applied to the musculature of the upper airway. Or, in U.S. Pat. No. 5,178,156 issued to Wataru et al, respiration sensing includes sensors for sensing breathing through left and right nostrils and through the mouth which identifies an apnea event and thereby triggers electrical stimulation of the genioglossus. Or, in U.S. Pat. No. 5,190,053 issued to Meer, an intra-oral, sublingual electrode is used for the electrical stimulation of the genioglossus to maintain the patency of an upper airway. Or in U.S. Pat. No. 5,211,173 issued to Kallok et al, sensors are used to determine the effectiveness of the stimulation of the upper airway and the amplitude and pulse width of the stimulation are modified in response to the measurements from the sensors. Or in U.S. Pat. No. 5,215,082 issued to Kallok et al, upon sensing of the onset of an apnea event, a stimulation generator provides a signal for stimulating the muscles of the upper airway at a varying intensity such that the intensity is gradually increased during the course of the stimulation. However, even with these modes of therapy there remain many practical difficulties for implementing them in a medically useful treatment system. In particular, if stimulation occurs in response to detected inspiration or to misdetected apnea events, it is important to be able to accurately detect the points at which stimulation is to be applied.

It is therefore an object of the invention to provide an apnea treatment device and method which includes practical and reliable detection of the inspiration portion of the respiratory cycle.

SUMMARY OF THE INVENTION

A method is provided for stimulation of an upper airway muscle of a patient to relieve an airway obstruction in which stimulation is synchronized with the inspiratory phase of the patient's respiratory cycle. A respiratory effort waveform of the patient is monitored for a change in slope of the respiratory effort waveform characteristic of an inspiratory turn point and stimulation is then commenced in response to the detected turn point. Alternatively, the respiratory effort waveform can be monitored for a predetermined amplitude characteristic of an inspiratory turn point and stimulation can then be commenced in response to the detected turn point. In a preferred embodiment, the respiratory effort waveform is monitored for the inspiratory turn point by both the change in slope and the achievement of a predetermined amplitude. By activating stimulation when either of these turn point criteria are met, more reliable synchronization of stimulation can be achieved.

The change in slope can be determined by a comparison between a moving average slope value and a current slope for the respiratory effort waveform. Preferably, the moving average slope is a weighted average (such as an exponential average) which places the greatest weight on the most recent slope values in the average. The waveform slope value itself can be achieved by sensing a signal characteristic of respiratory effort of the patient, sampling the sensed signal at a predetermined interval to provide a digitized respiratory effort waveform, and determining the difference between the most recent amplitude value and the next most recent amplitude value. This can be done continuously as the signal for the waveform is received with each sampled value used to compute a new current slope and also included in the moving average computation. The change in slope characteristic of an inspiratory turn point can be determined by comparing the current slope with the moving average slope to see whether it is above a predetermined value. The current slope value that is characteristic of a turn point is therefore typically in the range of about 1.5 to 5 times the moving average slope which can be programmed into the apnea treatment device according to the needs of the patient.

With respect to the detection of the inspiratory turn point by means of a predetermined amplitude, this can also be determined from averages taken from the respiratory effort waveform. Therefore, an average peak-to-valley amplitude for the waveform can be determined and the amplitude required for the detection of the inspiratory turn point can be determined as a function of the average amplitude. For example, the predetermined amplitude for the turn point can be determined to be the lowest amplitude value of the respiratory cycle plus an amount in the range of about 15% to 30% of the average peak-to-valley amplitude. The actual percentage could, of course, be programmed into the apnea treatment device according to the needs of the patient.

The determination of amplitude can be made in much the same manner as that described above for the slope determination. A signal characteristic of respiratory effort of the patient is sampled at a predetermined interval to provide a digitized respiratory effort waveform. The highest and lowest amplitude values of the digitized waveform are then determined for a plurality of successive respiratory cycles and the difference between the highest and lowest amplitude values for each respiratory cycle is noted. An average is then determined for the plurality of amplitude value differences. Preferably, the average is also a weighted average which gives the most weight to the most recent respiratory cycles. An exponential average is most preferred.

Once the inspiratory turn point is detected, the stimulation treatment for obstructive apnea can be commenced. Stimulation can be started immediately in the same respiratory cycle or it can be delayed until the next respiratory cycle. By starting stimulation in the next respiratory cycle, the stimulation can be made to anticipate the inspiratory turn point. For example, a representative respiratory cycle time can be determined for the patient by averaging the times between the detected inspiratory turn points in previous respiratory cycles. The time when the inspiratory turn point is detected is then noted and the time for commencement of stimulation is then determined as a function of the respiratory cycle time and when the inspiratory turn point is detected. For example, stimulation can be commenced at the respiratory cycle time minus an amount of time in the range of about 50-1000 milliseconds following detection of the inspiratory turn point.

The synchronization of stimulation with the inspiratory phase of the patient's respiratory cycle also requires that the stimulation be concluded in a reliable fashion at the end of the inspiratory phase. Therefore, in another aspect of the present invention, the sensing and sampling of the respiratory effort signal is also used to determine the inspiratory peak. Thus, a signal characteristic of respiratory effort of the patient is detected and sampled to provide a digitized respiratory effort waveform. A moving average slope is determined for the waveform and a point in time is identified at which the moving average slope first becomes negative. An interval is then timed out after the moving average slope becomes negative and the moving average slope is checked at the end of that interval to see that it is still negative. This additional check ensures that a true inspiratory peak has been detected before stimulation is concluded. The time interval effective for checking the peak is typically in the range of about 5% to 20% of the patient's respiratory cycle time. The stimulation can then be immediately turned off upon detection of a confirmed inspiratory peak.

In the event that a confirmed inspiratory peak is not detected, patient safety can be ensured by an alternative method for turning off stimulation which simply concludes stimulation after a predetermined period of time. For example, the time that stimulation has been active is monitored and after about 1.5 to 3.5 seconds the stimulation is discontinued if an inspiratory peak has not been detected.

The same monitoring of the respiratory effort waveform for inspiratory turn point and inspiratory peak set forth above can also be used to distinguish the respiratory waveform from signal artifacts such as cough or movement artifacts. For example, the respiratory waveform can be monitored for a parameter characteristic of an inspiratory turn point and stimulation can be commenced in response to the detected turn point. At the same time the respiratory effort waveform can be monitored for an artifact not characteristic of normal respiratory activity. Once an artifact is detected, stimulation can be turned off upon detection of the artifact so that the patient is not being stimulated in response to inappropriate signal criteria. The artifact can be detected by monitoring the respiratory effort waveform for a parameter of the waveform characteristic of a body movement or a cough by comparing the parameter value with a predetermined limit. The parameter can be any number of parameters which would be sensitive to irregularities in the waveform such as inspiratory rise time, inspiratory time-to-peak, time of inspiratory onset to expiratory offset, inspiratory peak-to-peak time, expiratory peak-to-peak time and breath-to-breath time. The irregularities in the waveform can then be detected by checking the waveform against a limit value suitable for the parameter. For example, if the parameter is inspiratory rise time, a time of less than 220 milliseconds indicates an artifact rather than a valid respiratory signal. Or, for example, an inspiratory time-to-peak of less than 750 milliseconds indicates an artifact. Or, a time of inspiratory onset to expiratory offset of less than 1000 milliseconds indicates an artifact.

A medical device for treating obstructive sleep apnea which embodies this method of respiratory waveform detection and analysis can be made according to the detailed description which follows.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a side sectional diagram of a patient having normal respiratory activity.

FIGS. 2a-c are graphs of normal respiratory waveforms (shown with full normal inspiration at the peak). FIG. 2a shows a respiratory effort waveform and indicated phases of the respiratory effort waveform. FIG. 2b shows a graph of a respiratory airflow waveform with FIG. 2c showing the corresponding respiratory effort waveform.

FIG. 3 is a side sectional diagram of the patient of FIG. 1 at the onset of to obstructive apnea.

FIGS. 4a and 4b are respiratory waveforms of inspiratory effort showing normal inspiratory effort (FIG. 4a) and the change in normal inspiratory effort at the onset of an apnea event (FIG. 4b). FIG. 4c is a respiratory waveform showing respiratory airflow (as opposed to the respiratory effort waveform shown in FIGS. 4a and 4b) in a patient during an apnea event.

FIG. 5 is a block diagram of one embodiment of the apnea treatment device according to the present invention.

FIG. 6 is a block diagram of the upper airway transmitter/controller of FIG. 5.

FIG. 7 is a top plan view of the RF output antenna of FIG. 6 coupled to an implanted receiving antenna.

FIG. 8 is a diagram of the control panel for the upper airway transmitter of FIG. 6.

FIGS. 9a and 9b are waveforms showing the synchronization of stimulation from the upper airway transmitter of FIG. 5 (FIG. 9b) with the respiratory waveform (FIG. 9a).

FIG. 10 is a waveform showing the shaping provided by the microprocessor, D/A converter and stimulus shaper of FIG. 6 to make the stimulus burst window of FIG. 9b.

FIG. 11 is a waveform showing two stimulus burst windows as in FIG. 10 and the burst interval.

FIG. 12 is a waveform according to FIG. 11 synchronized to the respiratory waveform.

FIG. 13 is a waveform according to FIG. 12 indicating the cessation of stimulation in the presence of a cough or movement artifact.

FIG. 14 is a waveform according to FIG. 12 indicating the cessation of stimulus due to the presence of "artifactual" inspiratory signals outside the ordinary refractory period of the respiratory waveform.

FIG. 15 is a waveform according to FIG. 12 indicating the truncation of the stimulus burst in response to a persistent inspiratory signal in the respiratory waveform.

FIG. 16 is a waveform showing the oscillator signal to be combined with each stimulus burst of FIGS. 10-15, the oscillator turned on in response to a signal from the microprocessor.

FIG. 17 is an output waveform for the device of FIG. 6 taken at the antenna output showing the shaped stimulus burst window of FIG. 10 with combined oscillator signal of FIG. 16 and RF carrier delay.

FIG. 18 is a respiratory waveform acquired by the respiratory transducer of FIG. 6 with indicated analysis points for an inspiratory cycle.

FIG. 19 is a respiratory waveform according to FIG. 18 with a cough artifact.

FIG. 20 is a respiratory waveform according to FIG. 18 with a movement artifact.

FIGS. 21a-b provide a comparison between the respiratory effort waveform according to FIG. 18 during an apnea event (FIG. 21b) with the waveform for inspiratory airflow (FIG. 21a).

FIGS. 22a-c is a block diagram for the analysis of the respiratory waveform and initiation of stimulation according to the device of FIG. 6.

FIG. 23 is a block diagram for the operation of the device of FIG. 6 in response to arousal of the patient.

FIG. 24 is an amplitude ramping and delay function activated in response to patient arousal according to FIG. 23.

FIG. 25 is a diagram of a circuit for filtering and amplifying the respiratory effort signal of the device of FIG. 6.

FIG. 26 is a diagram of a circuit for the gain control of the device of FIG. 6.

FIG. 27 is a diagram of a circuit for the A/D converter of the device of FIG. 6.

FIG. 28 is a diagram of the D/A converter and stimulus shaper of the device of FIG. 6.

FIG. 29 is a diagram of the RF oscillator of the device of FIG. 6.

FIG. 30 is a diagram of the antenna output of the device of FIG. 6.

FIGS. 31a and 31b are diagrams of operable resets of the device of FIG. 6 including power-on reset (FIG. 31a) and manual reset (FIG. 31b).

FIG. 32 is a diagram of circuit for the panel indicators of the control panel of FIG. 8.

FIG. 33 is a diagram of the apnea treatment device of FIG. 5 as it is applied to a patient.

FIG. 34 is an embodiment of the invention using an implanted pulse generator and implanted intrathoracic pressure sensor.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

The present invention relates to an apparatus and method for treatment of obstructive apnea by administering stimulation of the musculature of the upper airway in synchrony with the inspiratory phase of the respiratory cycle. In FIGS. 1 and 2a-c, normal respiratory activity is depicted. In FIG. 1, a patient 10 has an airway 15 which is remains patent during inspiration of air 20. FIG. 2a shows a typical respiratory effort waveform for two complete respiratory cycles. This analog waveform can be generated by a belt transducer (e.g. an EPMS Systems Resp-Ez Respiratory Belt Transducer) worn snugly about the chest of the patient. This is a conventional type of belt transducer that is used for detection and analysis of sleep apneas in sleep laboratories. Each wave of the waveform is characterized by a negative peak 30 on completion of expiration, a positive peak 35 on completion of inspiration and a turning point 40 which indicates the onset of inspiration. Each wave of the waveform can therefore be separated into a period of respiratory pause 32, an inspiratory phase 33 and an expiratory phase 34. Respiratory effort waveforms having the same identifiable characteristics can be provided by monitoring other physiological signals such as intrathoracic pressure, intrathoracic impedance or electromeyographic potentials. Other characteristics of the waveform could also be identified in connection with tracking and analyzing the respiratory waveform to monitor respiratory activity in sleep apnea treatment. In normal respiration, the respiratory effort waveform is related to airflow as set forth in FIGS. 2b and 2c. In FIG. 2b a trace of normal respiratory airflow from a flow transducer is shown while FIG. 2c shows the corresponding trace of the normal respiratory effort which produces the airflow.

In FIGS. 3 and 4b, respiration in the same patient at the onset of an obstructive sleep apnea event is depicted. FIG. 3 shows the patient 10 and airway 15 with an airway obstruction 17 that is characteristic of an obstructive apnea event. FIG. 4a shows that in a normal respiratory effort waveform 43, the inspiratory peaks 45a-d are of approximately the same amplitude. By comparison in FIG. 4b, in a waveform 47 the inspiratory peaks 50a-d become significantly greater in amplitude at the onset of obstructive apnea than the immediately preceding inspiratory peak 52. This is reflective of the increased inspiratory effort undertaken by the patient in response to the difficulty of breathing through the obstructed airway.

In the device and method of the present invention, the increased respiratory effort is avoided by synchronized stimulation of a muscle in the upper airway which hold the airway open during the inspiratory phase. Preferably, the muscle stimulated is the genioglossus muscle stimulated by a cuff electrode placed around the hypoglossal nerve. The effect of this stimulation on obstructive sleep apnea can be seen in the airflow trace of FIG. 4c. During a first period indicated as 53a, stimulation is enabled producing a normal respiratory airflow. During a second period indicated as 53b, stimulation is disabled causing obstruction of the airway and reduction in airflow volume (apnea). During a third period indicated as 53c, stimulation is resumed, restoring patency to the airway and increasing airflow volume. A block diagram of the principal elements of a device which can accomplish this is shown in FIG. 5. That device includes a transmitter/controller 55 which is capable of sensing the inspiratory phase and transmitting an electrical stimulus pulse to muscles of the upper airway. The transmitter/controller 55 could be either an implantable or an external device but the following description will relate primarily to a battery powered external device. A respiratory transducer 60 such as a conventional belt transducer sends respiratory waveform information to the transmitter/controller 55 which sends stimulus pulses through an antenna/electrode system 65 to stimulate the muscles of the patient. The antenna/electrode system can be a conventional system for bipolar RF coupled muscle stimulation (e.g. a Medtronic model 3538A RF Antenna coupled to a Medtronic Model 3642B Bipolar Receiver and Medtronic Model 3990 Half Cuff Nerve Electrode). As described therein, a surgically implanted receiving antenna, lead and electrode are radio frequency coupled transcutaneously to an external transmitting antenna that is attached to the transmitter/controller. A highly desirable addition to such a system is that of a programmer 70 (such as a laptop PC with serial communication software) which is capable of programming the transmitter/controller 55 with various parameters in order to adapt the device to a particular patient. The device of FIG. 5 is therefore adapted to be programmed by the doctor and thereafter used each night by the patient to prevent the closure of the upper airway during the inspiratory phase of the respiration cycle. It will be apparent to those skilled in the art that such a device must be made to be easy to use by the patient and since it is used without constant medical supervision, it must be able to safely adapt to many different operating conditions.

FIG. 6 is a block diagram of the transmitter/controller 55 of FIG. 5. A microprocessor 75 (Motorola 68HC05B6) controls the principal operations of the transmitter/controller 55. A respiratory transducer 80 on a respiratory belt (EPMS Systems Resp-Ez Respiratory Belt Transducer) produces a raw differential respiratory waveform signal from about +/-10 to +/-100 millivolts. The signal is typically the electrical output of the terminals of a piezoelectric crystal mounted on the respiratory belt. The signal from the transducer 80 is coupled to filter/amplifier circuitry 85 which filters, amplifies the differential signal so that it is compatible with an analog/digital converter 95. An output 87 to the microprocessor 75 indicates whether the respiratory transducer 80 is connected to the transmitter/controller 55. This allows the microprocessor 75 to produce an error indication and/or shut down the stimulus from the device when the respiratory transducer 80 is not connected. A gain control 90 is coupled to the circuitry providing the respiratory offset signal 85. The gain control 90 includes an output 92 to the microprocessor 75 and an input 93 from the microprocessor 75 which sets the signal at a proper level for use by the analog/digital converter 95. The analog/digital converter 95 is coupled to the gain control 90 and to the microprocessor 75. The analog/digital converter 95 produces a digital output to the microprocessor 75 in the range from 0-255 depending on the input voltage (a monopolar voltage in the range of 0-2.5 volts). The gain control 90 adjusts the voltage to provide an average digital output in about the middle of the 0-255 range and an offset range (measured from positive peak to negative peak of the waveform) covering about 80% of the 0-255 range. Sampling of the offset signal occurs about every 31 milliseconds as established by the clock rate for the system. This produces a digitized respiratory waveform with enough definition to be readily analyzed for respiratory phases by the microprocessor 75.

The microprocessor 75 identifies the inspiration phase of the waveform so that the system can supply a shaped stimulus burst for the duration of that phase at the antenna output 100. The microprocessor 75 is coupled to a dual digital/analog converter 105 which is also coupled at its output to analog circuitry which acts as a stimulus shaper 110. These elements work in combination to provide a shaped "stimulus window" which controls when stimulation will be provided and how much stimulation will be provided at the antenna output 100. The RF coupled stimulus burst is provided within this window. The microprocessor 75 sets the digital values for the digital/analog converter 105. The dual digital/analog converter 105 is connected in a cascaded arrangement with a first digital/analog section setting the amplitude of the stimulus pulse (i.e. from 0 to 8 volts in 256 increments of 32 millivolts) and the second digital/analog section setting the shape of the stimulus burst (i.e. the shape and duration of the stimulus during a rise time interval and a fall time interval as functions having 0-100% of full amplitude with eight bit resolution (1/256) for each 31 millisecond interval of output--typically, a linear ramping function of 250 millisecond for rise time and a linear ramping function of 125 millisecond for fall time is the default setting, or, to turn the stimulus on more quickly, a nonlinear ramping function, such as a sine function, could be used). An input 112 to the microprocessor 75 allows the microprocessor 75 to determine whether the stimulus gain is properly controlled. An RF oscillator 115 supplies a 460 KHz square wave signal which is gated by the microprocessor 75 to a sinusoidal wave with pre-programmed pulse rate and pulse duration (e.g. a rate in the range of 20-50 pulses/second; and a duration of 60-100 microseconds) and is combined with the stimulus window signal from the stimulus shaper 110 to provide the shaped stimulus burst at the antenna output 100. The maximum oscillator output is a peak-to-valley output of 8.0 volts. The oscillator is turned on by the output 117 from the microprocessor 75 which synchronizes the oscillator output with the beginning and end of the stimulus window. Input 119 to a microprocessor timer interrupt controls the timing of the stimulus pulses produces by the oscillator 115.

An RS-232 serial interface 120 allows programmable parameters of the system to be adjusted to conform to the needs of the patient through a standard computer interface. For example, the stimulus pulse amplitude, stimulus pulse duration, stimulus pulse frequency, stimulus burst duration, and stimulus ramp on/off times can be adjusted through the interface 120. In addition, the interface 120 can be used to store and retrieve various data in the system. For example, the patient's name, the code number of the hospital or clinic, the prescription date and the last follow-up date could be stored in the EEPROM of the microprocessor and read out as needed through the serial interface 120. Further, patient compliance data and system performance data could be accumulated by the system and read out through the interface 120. For example, the total time the power is on, the number of power cycles or reset cycles, the average battery voltage and fault detection could be stored in the microprocessor 75 and retrieved through the interface 120 as needed.

FIG. 7 shows an RF output antenna 125 and lead 130 which would be connected to the transmitter/controller 55 and an implanted receiving antenna 135 and lead 140 in proper alignment for RF coupling with the output antenna 125.

FIG. 8 shows the control panel 150 for the transmitter/controller 55. The control panel 150 includes an on/off switch 152 which allows the patient to turn the stimulation on or off. Turning switch 152 on also automatically resets and reinitializes the system. A momentary reset button 154 allows the patient to recycle the software initialization. For example, the patient would depress the reset button for at least five seconds after arousal to indicate that the stimulus should be halted for a short period until the patient is again asleep. A power-on LED indicator 156 indicates to the patient that the transmitter/controller 55 is on while an inspiration LED indicator 158 is illuminated during the inspiration phase to indicate to the patient that the inspiration phase is being correctly detected. If desired, the power-on LED indicator 156 and inspiration LED indicator 158 could be combined with the combined indicator illuminated during the first five minutes to indicate that the device is on and thereafter illuminated only upon detection of inspiration. The low battery LED indicator 160 provides the patient with an indication that the batteries require changing well in advance of their depletion. (The device uses three AA alkaline batteries in series and a separate long-life lithium backup battery to retain the system clock operation and the programmed parameters in the system while the batteries are being changed or when the system is turned off.) For example, if the system is designed to provide an orderly shut down when the battery voltage drops below 3.2 volts, the indicator 160 can be made to turn on when the voltage drops below 3.6 volts. This indication would allow the patient to replace the batteries and avoid the resumption of obstructive apnea that may occur if the device were to shut down while the patient was asleep. The antenna LED indicator 162 lights in response to a detected disconnect of the RF output antenna 125 from the transmitter/controller 55. The belt LED indicator 164 lights in response to a detected disconnect of the respiratory transducer 60.

FIGS. 9a and 9b indicate the basic mode of operation for the system. The patient's respiratory signal 170 is monitored and the inspiratory phase 172 of the signal 170 is identified from a waveform analysis which finds the turning point 173 and the inspiratory peak 174. The system then provides a bipolar stimulus burst to the appropriate upper airway musculature which is synchronized with the inspiratory phase 172. The shape of the stimulus burst is indicated as a stimulus window 175 which includes a peak amplitude 177 which is specifically set by the physician at a level required by the patient, a ramp 179 gradually increasing the stimulus during a rise time and a ramp 181 gradually decreasing stimulus during a fall time. The peak amplitude 177 is monitored by the microprocessor 75 once per second to determine whether it is within 10% of the prescribed value. Ideally, the stimulus would have a starting point 183 at the same time as the turning point 173 and continue to an end point 185 that is exactly at the inspiratory peak 174. However, due to the fact that there is always uncertainty as to whether the inspiratory peak 174 has been reached or whether the amplitude of the signal will continue to increase, the end point 185 for the stimulus window 175 does not occur until the system dearly identifies the peak by seeing that the signal 170 is on a downward trend. Thus, the end point 185 occurs slightly after the inspiratory peak 174.

FIGS. 10-17 show details of how the stimulus window 175 is formed and is synchronized to the inspiratory phase 172 of the signal 170. FIG. 10 shows a monophasic waveform window 200 shaped with a desired amplitude voltage 205, a stimulus risetime 207, a stimulus falltime 208 and a stimulus plateau 209. The length of time for which the stimulus plateau 209 is maintained is determined by the duration of the inspiratory phase 172 of the signal 170. In FIG. 11, there is a burst interval 211 between the starting point of successive stimulation bursts that is determined as shown in FIG. 12 by the interval between sensed inspiration from the respiratory signal 170. As shown in FIGS. 13-15, there are occasional waveform abnormalities caused by coughs or body movements which should not be allowed to trigger a stimulus or cause a stimulus to be continued for a prolonged period. For example, in FIG. 13, the presence of a rapid rise 215 in the respiratory signal 170 does not trigger a stimulus burst because a slew rate limit has been placed on the method used for inspiration detection. In that instance, the rate at which the slope of the respiratory signal 170 changed was compared with the slew rate limit and found to be beyond the acceptable range for a detected inspiration. A subsequent rise 217 in the respiratory signal 170 is correctly identified as an inspiration and a stimulus pulse 219 is produced in response. In FIG. 14 the presence of three rapid, upward deflections 220a, 220b and 220c in the respiratory signal 170 in close succession does not trigger a stimulus burst for the second 220b or third 220c deflections since a refractory limit established by the normal breathing period of the patient has not been met for the second 220b and third 220c deflections. In FIG. 15, an upward deflection 225 in the respiratory signal 170 continues for an unusually long period of time. Although the stimulus burst 227 is produced in response to this deflection 225, it is terminated at point 229 after a predetermined period of time. FIGS. 16 and 17 show how the RF oscillator provides an RF burst that is synchronous with a stimulus pulse. FIG. 16 shows a control signal (stimulus pulse) 230 which activates the RF oscillator to produce an RF square wave signal 232. This signal 232 is then gated by the stimulus pulse and combined with the monophasic shaping waveform window 200 to form the actual stimulus burst. Wave 235 represents the actual gated RF carrier as measured at the RF antenna which is delayed by an RF carrier delay period 237 of about 20-30 milliseconds.

Many of the functions of the apnea treatment system are controlled by the microprocessor 75. One of the most important of the microprocessor's functions is to analyze the respiratory signal 170 to determine when stimulation should take place and when it should not. Artifact free respiration is typically a periodic signal like the respiratory signal 170 of FIG. 18. In FIG. 18, inspiration is represented as an upward deflection 240. Each cycle of the respiratory signal 170 can be broken down into three phases. The first is the active inspiratory phase T2 which is the time from the turn point 242 where inspiration begins to the peak PK1 where expiration begins. The second phase is the active expiratory phase from the end of T2 to the end of T3 which is the time from the positive inspiratory peak PK1 to the negative expiratory peak PK2. The third phase is the respiratory pause from the end of T3 to the end of T4 which is the time from the end of an active inspiration to the beginning of the next inspiration. T1-T4 are monitored by the microprocessor 75. T1 is a measure of inspiratory rise time and is a sub-component of the active phase of inspiration. It represents the inspiratory rise time to a nominal 75% of peak value. T2 is the active inspiratory phase time. T3 is the active inspiratory/expiratory phase time. T4 is the length of a single respiratory cycle. In order to monitor these values, the microprocessor 75 needs to find the inspiratory turn point 242, the inspiratory peak PK1, the negative expiratory peak PK2, and the next inspiratory turn point 242a. In general, these points are found by various slope and/or amplitude criterion. Also monitored by the microprocessor are the PK1 and Pk2 amplitude values for each phase. Average values of these variables may be computed and stored in the memory of the apnea treatment device in order to allow any method used to analyze the respiratory waveform or any method used to detect the onset of an apnea to adapt to normal variations in the waveform that may occur during sleep.

During the respiratory pause, an on-line, moving average baseline slope value is calculated by the microprocessor 75. The baseline slope calculation is an exponentially weighted average of the prior slopes and is calculated by summing the preceding eight slope values which have been multiplied respectively by the weighting factors 1/2, 1/4, 1/8, 1/16, 1/32, 1/64, 1/128, and 1/256. The inspiratory turn point 242, 242a is then defined as that point where the baseline slope is positive and the realtime slope exceeds the baseline slope by a preset factor. This factor may be, for example from about 1.5× to 5× with a factor of about 2× to 4× being preferred. The slope threshold must be large enough to exclude any cardiac artifact in the respiratory signal 170. Since it is possible that the beginning of the inspiratory phase can be very gradual, a backup threshold criteria is also used to find the point THR1. The threshold is set on every phase to be the amplitude of the last detected negative peak plus one fourth of the exponentially weighted average of the prior peak-to-valley amplitudes. The exponentially weighted average of the prior peak-to-valley amplitudes is calculated by summing the preceding eight peak-to-valley amplitude values which have been multiplied respectively by the weighting factors 1/2, 1/4, 1/8, 1/16, 1/32, 1/64, 1/128, and 1/256. Upon detection of the inspiratory turn point, the stimulus burst is enabled.

Having identified the inspiratory turn point 242, the inspiratory rise time T1 is found by comparing the amplitude of the signal 170 with the calculated amplitude value obtained by taking the amplitude of the last detected negative peak and adding three fourths of the exponentially weighted average of the prior peak-to-valley amplitudes. When the amplitude of the signal 170 exceeds these values, T1 and THR2 have been found. T1 is then compared with stored maximum and minimum values to determine whether the detection of inspiration is genuine. A T1 value that less than the minimum value would typically correspond to a cough, movement or some other transducer artifact. A T1 that is less than the minimum value will cause the stimulus to be disabled immediately as the respiratory signal 170 crosses THR2. This is the slew rate limit discussed above. Where T1 is more than the maximum permitted value, an error in the detection of the inspiratory turn point 242 is probable so that the stimulus will also be immediately disabled. An exemplary minimum value for T1 is 220 milliseconds while an exemplary maximum value for T1 is the exponentially weighted average of T1 from prior respiratory cycles plus 781 milliseconds.

The inspiration time T2 and inspiration peak PK1 are then found at a local maximum of the respiratory signal (i.e. the exponential moving average slope of the respiratory signal goes from positive to negative) with the addition of a hysteresis fall-off past the local maximum to ensure that a peak has been reached (i.e. the exponential moving average slope remaining negative at the fall-off point). An exemplary fall-off would be 12.5% of the exponentially weighted average of the prior peak-to-valley amplitudes. The minimum acceptable value for T2 determines whether the peak is probably an artifact. An exemplary minimum T2 is 750 milliseconds. The maximum acceptable value for T2 determines whether too great a time has elapsed since the turn point to be a valid respiratory signal. The maximum T2 is set according to historical values for T2. For example, maximum T2 could be the exponential moving average of eight preceding T2 values plus 1093 milliseconds. Upon detection of PK1 or the attainment of the maximum permissible T2 value, the stimulus plateau is turned off and the ramp-down of the stimulus commences. As a safety precaution, the total stimulus burst is not allowed to exceed 2.5 seconds. This is the duration limit for the stimulus discussed above.

The inspiration/expiration time T3 and the negative expiratory peak PK2 are then found at a local minimum amplitude with the addition of a hysteresis amount equal to ensure that a negative peak has been reached. An exemplary hysteresis amount would be 2.125% of the exponentially weighted average of the prior peak-to-valley amplitudes. T3 is checked to determine whether it has reached a minimum acceptable value. An exemplary minimum T3 is 1000 milliseconds. The maximum acceptable value for T3 is set according to historical values for T3 and if T3 is beyond the maximum, the stimulus will be disabled for subsequent phases until an acceptable, artifact-free respiratory phase is identified. For example, maximum T3 could be the exponential moving average of eight preceding T3 values plus 1406 milliseconds.

The respiratory cycle period T4 represents the breath-to-breath interval from the last inspiratory onset (n-1) to the present inspiratory onset (n). As with other waveform parameters, T4 is exponentially averaged. This averaged value is used as an adaptive parameter to predict the onset of the next breath. Therapeutically, it is important that the stimulus burst onset be as close to the physiological inspiratory onset as possible. Intrinsically, in a normal subject, the EMG activity of the pharyngeal muscles precede the onset of diaphragmatic EMG activity. The early pharyngeal activity in essence prepares the patency of upper airway to withstand the negative pressure created during inspiration. Therefore, a predetermined time (e.g. 500 milliseconds) can be subtracted from the average T4 value to predict the next breath and enable stimulation in synchrony with inspiratory effort. Thus, stimulation is preferably enabled by: (1) the expected commencement of inspiration as computed from the T4 average or (2) the detection of a valid inspiratory turn point if that occurs earlier than the computed time for the expected commencement of inspiration.

Initialization of the respiratory signal analysis process occurs when the system is turned on or reset. Initial default values are provided for T1-T4 and an initial period for baseline calculation/signal assessment and offset/gain adjustment is commenced. For example, default parameters can be set as follows: T1=1500 milliseconds, T2=2500 milliseconds, T3=3750 milliseconds and T4=12 seconds. During an initial period of operation, stimulus is suppressed (e.g. for about 60 seconds) while the system develops baseline data about the waveform. The baseline data includes data about the average signal that is being received and its overall amplitude. The system uses this data to set the respiratory signal into the center of the detection range. For example, four (4) eight second baseline averages of the waveform are calculated and are exponentially averaged. This value can be used to adjust the baseline of the signal into the center of the detection range of the analog/digital converter (i.e. an average output of 128 in the range of 0-255). Thereafter, the signal is monitored by further eight second exponential averages and adjusted as required to keep it centered. The amount of gain for the signal is also initially set by taking the highest and lowest peak values detected during an eight second period and then roughly adjusting the gain to prevent clipping and to avoid a signal that is too small. Thereafter, the gain is controlled by calculating an exponential average of the preceding eight positive and negative amplitude peaks differentials detected in the signal and using that average to adjust the amplifier gain to cause the signal to cover about 80% of the range of the analog/digital converter. This is accomplished by testing the average value against maximum and minimum criteria and incrementing and decrementing the gain control to keep it within a preset maximum and minimum.

Therefore, when the respiratory signal 170 contains a cough artifact 250 such as that shown in FIG. 19 or a movement artifact 252 such as that shown in FIG. 20 the waveform analysis described above will differentiate the form of the artifacts from the more regular form of normal inspiration and ensure that those artifacts will not trigger inappropriate stimulation. In the event that a long series of invalid respiratory cycles are encountered, the stimulus is terminated and the system goes through a new calibration cycle to attempt to synchronize with an artifact-free signal.

The same waveform analysis can also provide an indication of the onset of apnea in the patient in order to identify the proper time to turn on stimulation or to determine whether stimulation is being effective in producing a patent airway. In an ideal diagnostic setting, obstructive apnea detection involves measuring a respiratory effort in the absence of airflow. However, in an easy-to-use therapeutic or an implantable device, an airflow measurement is not easily arrived at. Therefore, respiratory effort is used to identify the onset of an apnea episode. For example, at the onset of an apnea, an airflow measure 260 as shown in the graph of inspiratory volume of FIG. 21a shows a normal airflow peak 262 followed by diminishing peaks 264, 266 and 268 and a return to normal air intake at peak 270. The comparison respiratory signal 170 from FIG. 21b shows the opposite situation with respiratory effort being normal at peak 272 while the obstructed airway causes the patient to progressively increase respiratory effort at peaks 274, 276 and 278 in an attempt to obtain air. At peak 280, the patient has aroused himself slightly in response to the apnea, allowing the airway to open for a normal breath. The waveform analysis set forth above can measure the PK1 to PK2 amplitude and other parameters of the respiratory effort waveform shortly after the device is turned on to establish a baseline value for normal, unobstructed breathing. These values can then be stored in memory and compared with the same parameters in each respiratory cycle to identify the increased inspiratory effort above a predetermined threshold value that is characteristic of an apnea event. The threshold value can be programmed into the device according to the requirements of the particular patient. Upon detection of the onset of the apnea event, stimulation can then be enabled to restore the airway to patency or the stimulation intensity can be increased if the intensity of stimulation being given has been inadequate to produce patency.

The waveform analysis can also be used to detect arousal of the patient. In a diagnostic setting, an arousal is clinically determined using EEG, EOG and EMG signals. An awakening arousal is in essence a sleep stage. These signals are not readily available in an easy-to-use therapeutic device or implantable device. However, an analysis of cough and movement artifacts in the respiratory waveform can give an indication of arousal. A respiratory waveform with a typical cough artifact is shown in FIG. 19 and a typical movement artifact is shown in FIG. 20. The values for T1-T4 and PK1 and Pk2 would indicate that these waveforms are not from regular respiratory activity. In fact, the rapid rise times and frequent positive and negative peaks are characteristic of body movement during periods of arousal. Therefore, multiple detected T1-T4 values that are shorter than an established threshold value and which are associated with the presence of detected multiple peaks PK1 and PK2 would constitute a detected arousal. This detected arousal could be used to delay the onset of stimulus until the patient has returned to sleep. An activity sensor such as that used in heart pacemakers can also be included in the device and then used to determine arousal of the patient. For example, a signal from the activity sensor can be monitored and if predetermined amplitude and duration thresholds are satisfied, that would constitute a detected arousal. For even greater accuracy in detecting arousal, the activity sensor arousal determination can be combined with the respiratory waveform detected arousal. For example, if both the activity sensor and the respiratory waveform indicate arousal, then the stimulation to the patient is disabled. The threshold values for arousal determination for both the respiratory waveform and the activity sensor can be pre-programmed into the device according to the sleep activity of the particular patient.

The block diagram of FIGS. 22a-c summarizes the basic method for inspiration detection and stimulation in response to inspiration detection. In general, a baseline amplitude and offset calculation is established for the respiratory effort waveform. The waveform is then tracked from the inspiratory onset (i.e. achievement of the inspiratory turn point) to expiratory onset (i.e. achievement of the inspiratory peak PK1) and to expiratory offset (i.e. the achievement of the negative expiratory peak PK2). An adaptive time/morphology filter is used to adjust to normal changes in the respiratory pattern. An average of preceding breath-to-breath intervals is used to provide a predicted onset for the next breath such that the stimulus can be activated in synchrony with the predicted onset and thereby slightly precede the actual breath. In the event that the breath is earlier than predicted, stimulation is commenced upon detected inspiration onset. Initialization 300 of all system peripheral inputs and outputs occurs upon a power-up of the system or when a manual reset is activated. A respiratory offset calculation 302 is undertaken by sampling the waveform and finding an average offset for the DC coupled amplifiers. The system then synchronizes 305 itself to the waveform by detecting an expiratory offset. The system then undergoes an initialization step 307 in which the system tracks several respiratory cycles to set the amplifier gain and establish the normal morphological parameters for the waveform. A time reference is also established with respect to the last inspiratory onset so that the a predicted onset can be calculated for the next breath. The system then determines whether the appropriate amount of time has elapsed for a predicted onset 310. If yes, the requirement for stimulus delay 315 is tested and if delay is not required, the stimulus is enabled 312. If no, the waveform is tested for detection of inspiration onset 320. If yes for inspiration onset detection, the requirement for stimulus delay 325 is tested as well as a test for whether the stimulus is already enabled 330. If those tests are met, stimulation is enabled 335 and the next predicted onset time is calculated 340. After detection of inspiratory onset 320, the amplitude threshold value (THR2) and rise time (T1) are calculated 345. If the rise time is found to be too long 350 stimulation is disabled 352 since the detected inspiration onset is probably an invalid onset detection. Similarly, if the rise time is found to be too short 355 stimulation is disabled 357 since the detected inspiration onset is probably an invalid onset detection. The system then looks for the expiration onset (PK1) 360 and when detected the stimulus is disabled. If not detected the time of stimulation is checked 365 and if it is too long, stimulation is disabled 367. Once the expiratory onset (PK1) has been identified, the system looks for expiratory offset (PK2) 370. Once expiratory offset detected, the system begins to calculate the slope baseline 375 so that the next inspiratory onset can be found. The system then begins a new cycle by again testing for the predicted inspiratory onset 310.

Since stimulation of the upper airway can have very distinct sensations that disturb the patient, it is very important that the patient is allowed to get to sleep before the onset of stimulation and, if aroused, is able to return to sleep without feeling the effects of stimulation. This is accomplished by the stimulus delay system shown in FIG. 23. A stimulus delay controller 400 receives an arousal signal from the arousal event detector 405. The arousal event detector 405 can be movement detected through the waveform analysis as set forth above or it can be any other event that would be indicative of an arousal. For example, the patient may press the reset button or may turn the unit off and on to manually indicate that he is awake and wishes to delay stimulation. Or, as described above, the device itself may contain an activity sensor that responds to body movement similar to those used to detect patient activity in heart pacemakers such as the piezoelectric sensor disclosed in U.S. Pat. No. 4,428,378 issued to Anderson et al or the position sensor used in a neurostimulator as disclosed in U.S. Pat. No. 5,031,618 issued to Mullett which are incorporated herein by reference in their entirety. The signal from the arousal event detector 405 is received by the stimulus delay controller 400 and at the same time sends a signal to the stimulus output stage 410 which disables the stimulus. The stimulus delay controller 400 must then determine when and in what manner to resume stimulation. For example, in response to being turned on, the stimulus will be completely suppressed for the initialization phase for the unit (typically about 60 seconds) and then suppressed for a period of time ranging from 0 to 20 minutes which is preprogrammed into the unit according to the needs of the patient. For example, a delay of 15 minutes may be used to allow the patient to get to sleep initially. Or, if the reset button is pushed, a second, preprogrammed delay (which is typically shorter than the power-on delay) would be activated which also suppresses the stimulation. For example, a 1 to 5 minute delay may be sufficient for a sleepy patient. While it may be convenient to completely suppress the stimulation during the delay period, it is only necessary to reduce the level of stimulation to a stimulation that is below the level of physiological response that is perceptible to the patient. Reducing the level of stimulus without suppressing it completely can be accomplished by activating a stimulus ramp controller 415 which, when activated, reduces the stimulus amplitude to a very low value and gradually increases it over a preselected period of time so that at the end of that time, the stimulus provided will be the full stimulus amplitude programmed into the device. For example, the stimulus could be ramped up over a 30 to 60 second period depending on the presumed degree of wakefulness of the patient. Either a delay with complete stimulus suppression or a ramped stimulus can be used as desired by the patient. As shown in FIG. 24, in a preferred delay system, the delay with complete stimulus suppression 425 is combined with the ramp controlled stimulus 430 until the full programmed amount of stimulus 435 is achieved. Also, in a preferred embodiment, the stimulus delay controller records and responds to one or more parameters characteristic of wakefulness of the patient such as the frequency of arousal events, the intensity of an arousal event or the duration of an arousal event so that if the arousal parameter or combination of parameters meets preprogrammed criteria, the delay period is automatically adjusted. Thus, for short, frequent arousal periods of low intensity (such as the patient turning over in his sleep), it can be assumed that the patient is very sleepy and only a short delay is provided (e.g. about 1 minute with a 30 second ramp time) while in the case of longer duration arousal events or more intense arousal events (such as the patient getting out of bed), it can be assumed that the patient is wakeful and a longer delay is provided (e.g. about 5 minutes with a 60 second ramp time). The selection of particular parameters or combination of parameters will depend on the methods chosen to detect arousal and can be readily adjusted by those skilled in the art by testing in patients according to the principles set forth above. Preferred parameters include those which may be derived from the analysis of respiratory waveforms as set forth above and activity sensing as practiced in activity-responsive heart pacemakers.

In one embodiment, five sources of arousal information would be employed in the system to trigger the arousal event detector 405: power-on reset, manual reset, position sensor, respiratory waveform, and activity sensor. Monitoring of all of these parameters along with controlling stimulation delay can be handled by the microprocessor 75. The power-on reset is activated at the time the patient retires to bed and causes a 15 minute delay in the stimulus delay controller 400. The manual reset is activated by the patient to indicate arousal and causes a 5 minute delay to be provided by the stimulus delay controller 400. The position sensor is mounted on the respiratory belt where it can determine the position of the patient's upper body (i.e. whether the patient is in a recumbent or upright posture) and determines whether the patient's position has changed from a recumbent position to a sitting or standing position. Upon detection in a change to a standing or sitting posture, arousal is detected and an 8 minute delay is applied by the stimulus delay controller 400. The respiratory waveform is monitored with respect to the rise time T1 with the calculation of a moving exponential average rise time. When the average rise time falls below 250 milliseconds, arousal is assumed and the stimulus delay controller 400 provides a one minute delay. The piezoelectric activity sensor is also mounted on a surface of the respiratory belt in order to indicate the activity of the patients' body. The sensor generates a sensor output due to deflection of the surface on which it is mounted as compression waves from movement of the patient cause that surface to deflect. The output of the activity sensor is monitored for changes in patient movement. This can be done by first monitoring the output of the activity sensor and computing four eight second average levels for sensor output at one minute intervals sixteen minutes after power-on reset and averaging the four eight second averages as a baseline activity level for the patient. Thereafter, the sensor is monitored approximately every second and an exponential moving average of the sensor output is computed. When the average output reaches a preprogrammed level (e.g. 3-5 times the stored baseline level), arousal is presumed and a 30 second delay is applied by the stimulus delay controller 400. The output of the stimulus delay controller 400 is also determined by the interrelationship between the arousal detection parameters. For example, during the 15 minute delay following power-on reset, if a manual reset is detected, the controller 400 will provide the longer of the remaining 15 minute delay provided by the power-on or the 5 minute delay provided by the manual reset (i.e. the longer delay will always be favored). In addition to the delay periods set forth above, the delay provided in response to the detected arousal from the respiratory waveform and activity sensor is adjusted based on number of arousal detections, the duration of the sensed arousal and the time between sensed arousals. For example, if arousal is detected by both respiratory waveform and activity sensor for more than 15 seconds, a major arousal is assumed and a two minute delay is provided by the controller 400. On the other hand, if the activity sensor alone indicates multiple short arousal periods (e.g. 3-5 arousals 3-10 seconds apart), it can be assumed that the patient is merely sleeping restlessly and the delay provided by the controller 400 in response to the activity sensor can be reduced to 10 seconds. Further, since the device described is programmable, the various delay times and other parameters of the system as set forth in the example above may be default values for the device which may be programmed to different settings by the prescribing physician.

In the event that the patient returns to sleep prior to the completion of the delay, the system can monitor for an apnea event and resume or increase the stimulation in response to the detection of obstructive sleep apnea. For example, in one embodiment, the peak-to-peak amplitude of the respiratory effort waveform is monitored and an exponential moving average of amplitude calculated. When the amplitude in each of three successive respiratory cycles exceeds the average amplitude by 10%, an apnea is assumed and the delay controller 400 cancels the delay, thereby allowing stimulation to be enabled. To prevent false apnea detection, the device could be programmed to maintain the delay after the first detected apnea until the detection of one to three additional apnea episodes (as programmed into the device) over a 3-5 minute period confirms the detection of the apnea.

Referring now to the circuit diagrams of FIGS. 25-32, FIG. 25 shows a low pass filter 450 and a differential low pass amplifier 460 for processing the transducer signal that is received through a four pin connector 452. One line from the connector 454 is connected to the microprocessor 75 in order to indicate that the transducer is properly connected. Quad op amps 462a, 462b, 462c are used in the amplifier 460. The signal output from the amplifier 460 goes to the gain control 470 shown on FIG. 26. The gain control 470 is operated by the microprocessor 75 which selects one or more of the quad analog switches 472a, 472b, 472c, 472d to be activated. Resistors 474a, 474b, 474c 474d are thereby selected or deselected from the circuit as required by the microprocessor 75. The resistors 474a-d each have different values so that their selection or deselection from the circuit causes the gain of the signal to be adjusted. The signal output from the gain control 470 goes to the offset control 480 on FIG. 27. Referring now to FIG. 27, the analog offset is generated by the digital/analog converter 482 which is controlled by the microprocessor 75. The resulting amplified and offset respiratory signal is sent to the analog/digital converter 483 where the signal is digitized and sent to the microprocessor 75. The analog/digital converter 483 is used to provide the microprocessor 75 with the information about the waveform such that the microprocessor 75 can control signal gain and offset. The microprocessor samples and averages the respiratory signal from the analog/digital converter 483 over a representative interval (e.g. eight seconds). This calculated average offset is then used to determine the DC offset to be generated through the digital/analog converter 482. Exponentially averaged peak/nadir values for valid respiratory signals are used to determine gain through the microprocessor gain control lines of FIG. 26. FIG. 28 is a diagram of the stimulus shaping circuitry 490 in which a dual digital/analog converter converts the signal from the microprocessor 75 into a monophasic waveform which defines the shape of the stimulus pulse. The first stage of the converter 492 receives a digital signal from the microprocessor 75 defining the shape of the stimulus, including the ramp and plateau portions for the waveform and outputs at a first stage 494 the analog waveform at full gain. The second stage of the converter 496 receives a digital signal from the microprocessor 75 which indicates the gain to be applied and the analog output from the converter reduces the gain of the waveform to its desired level. Voltage level circuitry 497 controls the output level of the RF signal along with the potentiometer 498 (to adjust the maximum value of the stimulus output) and the first and second converter stages 494 and 496. The microprocessor 75 monitors the stimulus level output and compares that level to a preprogrammed stimulus level characteristic of an overvoltage malfunction such that the stimulus output will be disabled if it is exceeded. The output signal from this circuit is used to bias the RF output switching transistor 422 on the antenna output circuit of FIG. 30. Referring now to the RF oscillator circuit 500 of FIG. 29, microprocessor 75 turns on the oscillator by activating gate 502 and also gates the pulse by activating gate 503. Latch 512 disables the stimulus output through gate 504 when the reset switch 513 is pressed. Latch 514 disables the stimulus output through gate 504 when the antenna is removed. After either of these events, the stimulus must be re-enabled by the microprocessor 75. The output signal 5 15 goes to the antenna output circuit 520 in FIG. 30 where it is combined with the shaped signal from the stimulus shaping circuitry 390 in FIG. 28. In the antenna output circuit 520, the signals are combined through an NPN power transistor 522 into the desired output signal for the device at the antenna connector 524. To detect the presence of the antenna connection, an antenna detector circuit employing an N-channel FET 526 is used with a signal output 528 to the latch 514 in FIG. 29 and to the LED antenna indicator 162 on FIG. 32. FIGS. 31a and 31b show the patient-operable resets for the device including a power-on reset 530 and manual reset 540 respectively. In the power-on reset 530, powering-up the device causes the reset on the microprocessor 75 to be activated. In the manual reset 540, the patient can press the reset switch 513 to reset the microprocessor 75 and disable the stimulus output via latch 5 14 as shown in FIG. 29. FIG. 32 shows indicator circuitry 550 which includes the inspiration LED indicator 158 which also responds to a power-on indication when the system is first turned on and the low battery LED indicator 160 which are both controlled from the microprocessor 75, and the antenna LED indicator 162 which light in response to a detected disconnect of the RF output antenna.

In FIG. 33, the system as described above is shown as it is used on a patient 600 with an external transmitter/controller 55, a respiratory transducer 60 in the form of a belt 602 around the patient's chest and lead 604 extending from the belt 602 to the transmitter/controller 55 to provide respiratory waveform information to the transmitter/controller 55. In response to the sensed waveform, transmitter/controller 55 sends stimulus pulses through an antenna/electrode system 65 to stimulate an upper airway muscle 610 (i.e. the genioglossus muscle) of the patient 600. The antenna/electrode system 65 is connected to the transmitter/controller 55 by a lead 610 and output antenna 612. The output antenna 612 is coupled by RF signals 615 to a receiving antenna 620 which is connected to a stimulation electrode 624 by a lead 622. The stimulation electrode 624 is positioned to stimulate the hypoglossal nerve 630.

A device substantially as described above can also be implemented in a fully implantable stimulation system such as that shown in FIG. 34. In FIG. 34, an implantable pulse generator 710 (e.g. a Medtronic ITREL II Model 7424 modified to include an input from a respiratory sensor) can be implanted in a patient 700 with respiratory sensing from a pressure sensor 715. The Medtronic ITREL II implantable neurostimulator has advanced programmable features permitting mode changes by transcutaneous RF telemetry. The patient-controllable parameters of the device's operation can therefore be controlled by the patient through a small, handheld telemetry device while the physician can preset additional operational parameters of the device through an external programmer. The pressure sensor 715 is dynamic dp/dt type of pressure sensor such as that disclosed in U.S. Pat. No. 4,407,296 to Anderson or U.S. Pat. No. 4,485,813 issued to Anderson et al which are incorporated herein by reference in their entirety. The pressure sensor 715 is surgically implanted in a structure which has pressure continuity with the intrapleural space such as the suprasternal notch, the space between the trachea and esophagus or an intercostal placement. The suprasternal notch is a well known structure on the upper chest just above the sternum that is an anatomical continuity with the intrapleural space. It is also well known that changes in intrapleural pressure provide a characteristic respiratory waveform that is very similar in form to that produced by the respiratory belt and which could be analyzed in the same manner as set forth above to produce synchronous stimulation. Additional or substitute methods for respiratory effort detection include measurement of thoracic impedance, intracostal EMG, or diaphragm EMG. Inspiration-synchronous stimulation is provided from the pulse generator 710 through a lead 718 to an electrode 720 around the hypoglossal nerve 730.

It will be appreciated by those skilled in the an that while the invention has been described above in connection with particular embodiments and examples, the invention is not necessarily so limited and that numerous other embodiments, examples, uses, modifications and departures from the embodiments, examples and uses may be made without departing from the inventive concepts. 

I claim:
 1. A method for providing stimulation of an upper airway muscle of a patient to relieve an airway obstruction, said patient having a respiratory cycle with an inspiratory phase, said stimulation synchronized with the inspiratory phase of the patient's respiratory cycle, the method comprising the steps of:(a) providing a respiratory effort waveform of the patient; (b) monitoring the respiratory effort waveform of the patient for a change in slope of the respiratory effort waveform characteristic of an inspiratory turn point and for a predetermined amplitude characteristic of an inspiratory turn point; (c) detecting an inspiratory turn point according to the monitored first change in slope or amplitude in step (b); and (d) commencing stimulation in response to the detected inspiratory turn point.
 2. The method of claim 1 wherein the stimulation is commenced immediately upon detection of the inspiratory turn point.
 3. The method of claim 1 wherein the stimulation is commenced in a next respiratory cycle following detection of the inspiratory turn point by the steps of determining an average duration for the patient's respiratory cycle; identifying an inspiratory turn point; and commencing stimulation at a time which coincides with a next inspiratory turn point.
 4. A method for providing stimulation of an upper airway muscle of a patient to relieve an airway obstruction, said patient having a respiratory cycle with an inspiratory phase, said stimulation synchronized with the inspiratory phase of the patient's respiratory cycle, the method comprising the steps of:(a) providing a respiratory effort waveform of the patient; (b) monitoring the respiratory effort waveform of the patient for n change in slope of the respiratory effort waveform characteristic of an inspiratory turn point and for a predetermined amplitude characteristic of an inspiratory turn point; (c) detecting an inspiratory turn point according to the monitored first change in slope or amplitude in step (b); and (d) commencing stimulation in response to the detected inspiratory turn point,wherein the change in slope is determined by the steps of: (1) determining a moving average slope for the respiratory effort waveform; (2) determining a current slope for the respiratory effort waveform; and (3) comparing the current slope with the moving average slope.
 5. The method of claim 4 wherein the step of determining a moving average slope includes determining the moving average slope as a weighted average by placing greatest weight on the most recent slope values,
 6. The method of claim 5 wherein the step of determining a weighted moving average slope includes determining an exponential weighted average.
 7. The method of claim 4 wherein the current slope is provided by the steps of:(a) sampling the respiratory waveform at a predetermined interval to provide a digitized respiratory effort waveform; and (b) determining a difference between a most recent amplitude value and a next most recent amplitude value.
 8. The method of claim 4 wherein the change in slope characteristic of an inspiratory turn point is determined by a current slope that is in a range of about 1.5 to 5 times the moving average slope.
 9. A method for providing stimulation of an upper airway muscle of a patient to relieve an airway obstruction, said patient having a respiratory cycle with an inspiratory phase, said stimulation synchronized with the inspiratory phase of the patient's respiratory cycle, the method comprising the steps of:(a) providing a respiratory effort waveform of the patient; (b) monitoring the respiratory effort waveform of the patient for a change in slope of the respiratory effort waveform characteristic of an inspiratory turn point and for a predetermined amplitude characteristic of an inspiratory turn point; (c) detecting an inspiratory turn point according to the monitored first change in slope or amplitude in step (b); and (d) commencing stimulation in response to the detected inspiratory turn point,wherein the predetermined amplitude characteristic of an inspiratory turn point is provided by the steps of: (1) determining an average peak-to-valley amplitude for the waveform; and (2) determining the predetermined amplitude as a function of the peak-to-valley amplitude.
 10. The method of claim 9 wherein the average peak-to-valley amplitude is determined by the steps of:(a) sampling the sensed signal at a predetermined interval to provide a digitized respiratory effort waveform; (b) determining highest and lowest amplitude values of the digitized waveform for a plurality of successive respiratory cycles; (c) determining a difference between highest and lowest amplitude values for each respiratory cycle; and (d) determining an average of the plurality of amplitude value differences.
 11. The method of claim 9 wherein the step of determining an average peak-to-valley amplitude for the waveform includes determining an exponentially weighted average.
 12. The method of claim 9 wherein the step of determining a predetermined amplitude characteristic of an inspiratory turn point is determined by the lowest amplitude value of the respiratory cycle plus an amount in a range of about 15% to 30% of the average peak-to-valley amplitude.
 13. A method for providing stimulation of an upper airway muscle of a patient to relieve an airway obstruction, said patient having a respiratory cycle with an inspiratory phase, said stimulation synchronized with the inspiratory phase of the patient's respiratory cycle, the method comprising the steps of:(a) providing a respiratory effort waveform of the patient; (b) monitoring the respiratory effort waveform of the patient for a change in slope of the respiratory effort waveform characteristic of an inspiratory turn point and for a predetermined amplitude characteristic of an inspiratory turn point; (c) detecting an inspiratory turn point according to the monitored first change in slope or amplitude in step (b); and (d) commencing stimulation in response to the detected inspiratory turn point,wherein the stimulation is commenced during a next respiratory cycle following detection of the inspiratory turn point by the steps of: (1) determining a representative respiratory cycle time for the patient; (2) determining when the inspiratory turn point is detected; (3) determining a time for commencement of stimulation as a function of the respiratory cycle time and when the inspiratory turn point is detected.
 14. The method of claim 13 wherein the step of commencing stimulation in response to the detected inspiratory turn point is commenced at a time determined by the step of taking the respiratory cycle time minus an amount of time in a range of about 50-1000 milliseconds following detection of the inspiratory turn point.
 15. A method for providing stimulation of an upper airway muscle of a patient to relieve an airway obstruction, said patient having a respiratory cycle with an inspiratory phase, said stimulation synchronized with the inspiratory phase of the patient's respiratory cycle, the method comprising the steps of:(a) providing a signal characteristic of respiratory effort of the patient; (b) sampling the signal at a predetermined interval to provide a digitized respiratory effort waveform; (c) determining a moving average slope for the respiratory effort waveform; (d) determining a current slope for the respiratory effort waveform; (e) comparing the current slope with the moving average slope to detect the inspiratory phase; and (f) commencing and concluding stimulation of the upper airway muscle according to the detected inspiratory phase.
 16. The method of claim 15 wherein the moving average slope is determined by the steps of:(a) determining a difference between an amplitude value for a sample interval and an immediately preceding sample interval; (b) determining an average from a plurality of successive sample intervals; and (c) redetermining an average at each sample interval.
 17. The method of claim 16 wherein the moving average slope is determined by the step of taking a weighted exponential average.
 18. The method of claim 15 wherein the stimulation is commenced by detection of a current slope characteristic of an inspiratory turn point at and concluded by detection of a moving average slope characteristic of an inspiratory peak.
 19. The method of claim 18 wherein the current slope characteristic of an inspiratory turn point is determined by a slope that is in a range of about 1.5 to 5 times the moving average slope.
 20. The method of claim 18 wherein the moving average slope characteristic of an inspiratory peak is determined by:(a) identifying when the moving average slope first becomes negative; (b) timing out a predetermined interval after the moving average slope becomes negative; and (c) determining whether the moving average slope is negative as the predetermined interval is concluded.
 21. The method of claim 20 wherein the predetermined interval is determined by the step of computing a range of about 5% to 20% of the patient's respiratory cycle time.
 22. The method of claim 18 wherein the stimulation is commenced immediately upon detection of the inspiratory turn point.
 23. The method of claim 18 wherein the stimulation is commenced in a next respiratory cycle following detection of the inspiratory turn point.
 24. The method of claim 23 wherein the stimulation is commenced during the next respiratory cycle by the steps of:(a) determining a representative respiratory cycle time for the patient; (b) determining when the inspiratory turn point is detected; (c) determining a time for commencement of stimulation as a function of the respiratory cycle time and when the inspiratory turn point is detected.
 25. The method of claim 18 wherein the stimulation is concluded immediately upon detection of the inspiratory peak.
 26. A method for controlling stimulation of an upper airway muscle of a patient to relieve an airway obstruction, said patient having a respiratory cycle with an inspiratory phase, said stimulation synchronized with the inspiratory phase of the patient's respiratory cycle, the method comprising the steps of:(a) providing a respiratory effort waveform of the patient; (b) monitoring the respiratory effort waveform of the patient for a change characteristic of an inspiratory turn point; (c) commencing stimulation in response a detected inspiratory turn point; (d) monitoring elapsed time since detection of the inspiratory turn point; (e) monitoring the respiratory effort waveform for an inspiratory peak; (f) concluding stimulation upon the earlier of (1) detection of the inspiratory peak or (2) elapse of a predetermined period of time,wherein the step of monitoring the respiratory effort waveform for a change characteristic of an inspiratory turn point includes the steps of: (1) determining a moving average slope for the respiratory effort waveform; (2) determining a current slope for the respiratory effort waveform; and (3) comparing the current slope with the moving average slope.
 27. The method of claim 26 wherein the step of determining a moving average slope for the respiratory effort waveform includes the step of placing greatest weight on the most recent slope values.
 28. The method of claim 27 wherein the step of determining a weighted moving average slope for the respiratory effort waveform includes the step of exponential weighting of the slope values.
 29. The method of claim 26 wherein the current slope is provided by the steps of:(a) sampling the respiratory effort waveform at a predetermined interval to provide a digitized respiratory effort waveform; and (b) determining a difference between a most recent amplitude and a next most recent amplitude of the respiratory effort waveform.
 30. The method of claim 26 wherein the change in slope characteristic of an inspiratory turn point is determined by a current slope that is in a range of about 1.5 to 5 times the moving average slope.
 31. A method for controlling stimulation of an upper airway muscle of a patient to relieve an airway obstruction, said patient having a respiratory cycle with an inspiratory phase, said stimulation synchronized with the inspiratory phase of the patient's respiratory cycle, the method comprising the steps of:(a) providing a respiratory effort waveform of the patient; (b) monitoring the respiratory effort waveform of the patient for a change characteristic of an inspiratory turn point; (c) commencing stimulation in response a detected inspiratory turn point; (d) monitoring elapsed time since detection of the inspiratory turn point; (e) monitoring the respiratory effort waveform for an inspiratory peak; (f) concluding stimulation upon the earlier of (1) detection of the inspiratory peak or (2) elapse of a predetermined period of time,wherein the stimulation is commenced during a next respiratory cycle following detection of the inspiratory turn point by the steps of: (1) determining a representative respiratory cycle time for the patient; (2) determining when the inspiratory turn point is detected; (3) determining a time for commencement of stimulation as a function of the respiratory cycle time and when the inspiratory turn point is detected.
 32. A method for controlling stimulation of an upper airway muscle of a patient to relieve an airway obstruction, said patient having a respiratory cycle with an inspiratory phase, said stimulation synchronized with the inspiratory phase of the patient's respiratory cycle, the method comprising the steps of:(a) providing a respiratory effort waveform of the patient; (b) monitoring the respiratory effort waveform of the patient for a change characteristic of an inspiratory turn point; (c) commencing stimulation in response a detected inspiratory turn point; (d) monitoring elapsed time since detection of the inspiratory turn point; (e) monitoring the respiratory effort waveform for an inspiratory peak; (f) concluding stimulation upon the earlier of (1) detection of the inspiratory peak or (2) elapse of a predetermined period of time,wherein the inspiratory peak is determined by: (1) identifying when the moving average slope first becomes negative; (2) timing out a predetermined interval; and (3) determining whether the moving average slope is negative as the predetermined interval is concluded.
 33. The method of claim 32 wherein the predetermined interval is determined by the step of computing a range of about 5% to 20% of the patient's respiratory cycle time.
 34. A method for controlling stimulation of an upper airway muscle of a patient to relieve an airway obstruction, said patient having a respiratory cycle with an inspiratory phase, said stimulation synchronized with the inspiratory phase of the patient's respiratory cycle, the method comprising the steps of:(a) providing a respiratory effort waveform of the patient; (b) monitoring the respiratory effort waveform of the patient for a change characteristic of an inspiratory point; (c) commencing stimulation in response a detected inspiratory turn point; (d) monitoring elapsed time since detection of the inspiratory turn point; (e) monitoring the respiratory effort waveform for an inspiratory peak; (f) concluding stimulation upon the earlier of (1) detection of the inspiratory peak or (2) elapse of a predetermined period of time,wherein the predetermined period of time is in a range of about 1.5 to 3.5 seconds.
 35. A method for controlling stimulation of an upper airway muscle of a patient to relieve an airway obstruction, said stimulation synchronized with the inspiratory phase of the patient's respiratory cycle, the method comprising the steps of:(a) providing a respiratory effort waveform of the patient; (b) monitoring the respiratory effort waveform of the patient; (c) detecting a change in the respiratory effort waveform characteristic of an inspiratory turn point; (d) commencing stimulation in response to the detected inspiratory turn point; (e) monitoring the respiratory effort waveform for an artifact not characteristic of normal respiratory activity; and (f) suppressing stimulation upon detection of the artifact.
 36. The method of claim 35 wherein the artifact is detected by the steps of:(a) monitoring the respiratory effort waveform for at least one parameter of the waveform characteristic of a body movement or a cough; and (b) comparing at least one value for the parameter with a predetermined limit.
 37. The method of claim 36 wherein the step of monitoring the respiratory effort waveform for at least one parameter of the waveform characteristic of a body movement or a cough includes selecting the parameter selected from the group consisting of inspiratory rise time, inspiratory time-to-peak, time of inspiratory onset to expiratory offset, inspiratory peak-to-peak time, expiratory peak-to-peak time and breath-to-breath time.
 38. The method of claim 37 wherein the step of monitoring the respiratory effort waveform for at least one parameter of the waveform characteristic of a body movement or a cough includes selecting inspiratory rise time as the parameter with a value of the parameter of less than 220 milliseconds.
 39. The method of claim 37 wherein the step of monitoring the respiratory effort waveform for at least one parameter of the waveform characteristic of a body movement or a cough includes selecting inspiratory time-to-peak as the parameter with a value of the parameter of less than 750 milliseconds.
 40. The method of claim 37 wherein the step of monitoring the respiratory effort waveform for at least one parameter of the waveform characteristic of a body movement or a cough includes selecting time of inspiratory onset to expiratory offset as the parameter with a value of the parameter of less than 1000 milliseconds.
 41. A method for controlling stimulation of an upper airway muscle of a patient to relieve an airway obstruction, said patient having a respiratory cycle with an inspiratory phase, said stimulation synchronized with the inspiratory phase of the patient's respiratory cycle, the method comprising the steps of:(a) providing a respiratory effort waveform of the patient; (b) monitoring the respiratory effort waveform of the patient; (c) detecting a change in the respiratory effort waveform characteristic of an inspiratory turn point; (d) commencing stimulation in response to the detected inspiratory turn point; (e) monitoring the respiratory effort waveform for an artifact not characteristic of normal respiratory activity; (f) detecting an artifact in the waveform; and (g) suppressing stimulation upon detection of the artifact,wherein the inspiratory turn point is detected by the steps of: (1) determining a moving average slope for the respiratory effort waveform; (2) determining a current slope for the respiratory effort waveform; and (3) comparing the current slope with the moving average slope.
 42. The method of claim 41 wherein the step of determining a moving average slope includes determining the moving average slope as a weighted average by placing greatest weight on the most recent slope values.
 43. The method of claim 42 wherein the step of determining a weighted moving average slope includes determining an exponential weighted average.
 44. The method of claim 41 wherein the current slope is determined by the steps of:(a) sampling the respiratory effort waveform at a predetermined interval to provide a digitized respiratory effort waveform; and (b) determining a difference between a most recent amplitude and a next most recent amplitude of the respiratory effort waveform.
 45. The method of claim 41 wherein the inspiratory turn point is detected by a current slope in a range of about 1.5 to 5 times the moving average slope.
 46. A method for providing stimulation of an upper airway muscle of a patient to relieve an airway obstruction, said patient having a respiratory cycle with an inspiratory phase, said stimulation synchronized with the inspiratory phase of the patient's respiratory cycle, the method comprising the steps of:(a) providing a signal characteristic of respiratory effort of the patient; (b) sampling the signal at a predetermined interval to provide a digitized respiratory effort waveform; (c) determining a moving average slope for the respiratory effort waveform; (d) determining a current slope for the respiratory effort waveform; (e) comparing the current slope with the moving average slope to determine an inspiratory turn point by a current slope that is in a range of about 1.5 to 5 times the moving average slope; and (f) commencing stimulation of the upper airway muscle according to the detected inspiratory turn point.
 47. The method of claim 46 wherein the moving average slope is determined by the steps of:(a) determining a difference between an amplitude value for a sample interval and an immediately preceding sample interval; (b) determining an average of differences for a plurality of successive sample intervals; and (c) redetermining an average at each sample interval.
 48. The method of claim 47 wherein the step of determining an average of differences for a plurality of successive sample intervals includes determining a weighted average weighted in favor of the most recent sample intervals.
 49. The method of claim 46 wherein the stimulation is commenced immediately upon detection of the inspiratory turn point.
 50. The method of claim 46 wherein the stimulation is commenced in a next respiratory cycle following detection of the inspiratory turn point.
 51. The method of claim 50 wherein the stimulation is commenced during a next respiratory cycle by the steps of:(a) determining a representative respiratory cycle time for the patient; (b) determining when the inspiratory turn point is detected; (c) determining a time for commencement of stimulation as a function of the respiratory cycle time and when the inspiratory turn point is detected.
 52. The device of claim 50 wherein the means for commencing stimulation during a next respiratory cycle comprises:(a) cycle time determining means for determining representative respiratory cycle time for the patient; (b) turn point detection means for determining when the inspiratory turn point is detected; (c) means for determining a time for commencement of stimulation as a function of the respiratory cycle time and when the inspiratory turn point is detected.
 53. A method for providing stimulation of an upper airway muscle of a patient to relieve an airway obstruction, said patient having a respiratory cycle with an inspiratory phase, said stimulation synchronized with the inspiratory phase of the patient's respiratory cycle, the method comprising the steps of:(a) providing a signal characteristic of respiratory effort of the patient; (b) sampling the sensed signal at a predetermined interval to provide a digitized respiratory effort waveform; (c) determining highest and lowest amplitude values of the digitized waveform for a plurality of successive respiratory cycles; (d) determining a difference between highest and lowest amplitude values for each of the plurality of respiratory cycles; (e) determining an average of the plurality of amplitude value differences; (f) monitoring the respiratory effort waveform; (g) determining an amplitude trigger value as a function of the average amplitude difference; (h) detecting an inspiratory turn point by attainment of the amplitude trigger value in the monitored respiratory waveform; and (i) commencing stimulation in response to the detected inspiratory turn point.
 54. The method of claim 53 wherein the step of determining an average of the plurality of amplitude value differences includes determining an exponentially weighted average.
 55. The method of claim 53 wherein the step of determining an amplitude trigger value as a function of the average amplitude difference includes the determination of the lowest amplitude for the current respiratory cycle plus an amount in a range of about 15% to 30% of the average amplitude difference.
 56. The method of claim 53 wherein the stimulation is commenced immediately upon detection of the inspiratory turn point.
 57. The method of claim 53 wherein the stimulation is commenced in a next respiratory cycle following detection of the inspiratory turn point.
 58. The method of claim 57 wherein the stimulation is commenced during a next respiratory cycle by the steps of:(a) determining a representative respiratory cycle time for the patient; (b) determining when the inspiratory turn point is detected; (c) determining a time for commencement of stimulation as a function of the respiratory cycle time and when the inspiratory turn point is detected.
 59. The method of claim 56 wherein the stimulation is commenced at the respiratory cycle time minus an amount of time in a range of about 50-1000 milliseconds following detection of the inspiratory turn point.
 60. A device for providing stimulation of an upper airway muscle of a patient to relieve an airway obstruction, said patient having a respiratory cycle with an inspiratory phase, said stimulation synchronized with the inspiratory phase of the patient's respiratory cycle, said device comprising:(a) slope monitoring means for monitoring a respiratory effort waveform of the patient for a change in slope of the respiratory effort waveform characteristic of an inspiratory turn point; (b) amplitude monitoring means for monitoring the respiratory effort waveform for a predetermined amplitude characteristic of an inspiratory turn point; (c) detecting means for detecting the first inspiratory turn point according to slope or amplitude criteria; and (d) stimulation means for commencing stimulation in response to the detected inspiratory turn point.
 61. The device of claim 60 wherein the slope monitoring means comprises:(a) slope averaging means for determining a moving average slope for the respiratory effort waveform; (b) slope determining means for determining a current slope for the respiratory effort ,waveform; and (c) comparison means for comparing the current slope with the moving average slope.
 62. The device of claim 61 wherein the slope determining means comprises:(a) sensing means for sensing a signal characteristic of respiratory effort of the patient; (b) sampling means for sampling the sensed signal at a predetermined interval to provide a digitized respiratory effort waveform; and (c) difference means for determining a difference between a most recent amplitude value and a next most recent amplitude value.
 63. The device of claim 61 wherein the detecting means for detecting the first inspiratory turn point according to slope or amplitude criteria includes means for determining that the current slope is in a range of about 1.5 to 5 times the moving average slope.
 64. The device of claim 60 also comprising:(a) amplitude determining means for determining an average peak-to-valley amplitude for the waveform; and (b) criteria determining means for determining the predetermined amplitude criteria as a function of the average peak-to-valley amplitude.
 65. The device of claim 64 wherein the amplitude determining means comprises:(a) sensing means for sensing a signal characteristic of respiratory effort of the patient; (b) sampling means for sampling the sensed signal at a predetermined interval to provide a digitized respiratory effort waveform; (c) peak determining means for determining highest and lowest amplitude values of the digitized waveform for a plurality of successive respiratory cycles; (d) difference means for determining a difference between highest and lowest amplitude values for each respiratory cycle; and (e) averaging means for determining an average of the plurality of amplitude value differences.
 66. The device of claim 60 wherein the stimulation means includes means for commencing stimulation immediately upon detection of the inspiratory turn point.
 67. The device of claim 60 wherein the stimulation means includes stimulation delay means for commencing stimulation in a next respiratory cycle following detection of the inspiratory turn point.
 68. The device of claim 67 wherein the stimulation delay means comprises:(a) cycle time determining means for determining a representative respiratory cycle time for the patient; (b) turn point detecting means for determining when the inspiratory turn point is detected; (c) stimulation determining means for determining a time for commencement of stimulation as a function of the respiratory cycle time and when the inspiratory turn point is detected.
 69. A device for providing stimulation of an upper airway muscle of a patient to relieve an airway obstruction, said patient having a respiratory cycle with an inspiratory phase, said stimulation synchronized with the inspiratory phase of the patient's respiratory cycle, comprising:(a) sensing means for sensing a signal characteristic of respiratory effort of the patient; (b) sampling means for sampling the signal at a predetermined interval to provide a digitized respiratory effort waveform; (c) slope average determining means for determining a moving average slope for the respiratory effort waveform; (d) slope determining means for determining a current slope for the respiratory effort waveform; (e) comparison means for comparing the current slope with the moving average slope; (f) phase detecting means for detecting the inspiratory phase according to the slope comparison; and (g) stimulation means for commencing and concluding stimulation of the upper airway muscle according to the detected inspiratory phase.
 70. The device of claim 69 wherein said slope average determining means comprises:(a) amplitude difference means for determining a difference between an amplitude value for a sample interval and an immediately preceding sample interval; (b) average determining means for determining an average difference from a plurality of successive sample intervals; and (c) average redetermining means for redetermining an average at each sample interval.
 71. The device of claim 69 wherein the phase detecting means comprises:(a) turn point detecting means for determining an inspiratory turn point from the current slope; and (b) peak determining means for determining an inspiratory peak from the moving average slope.
 72. The device of claim 71 wherein the peak determining means comprises:(a) first negative slope determining means for identifying when the moving average slope first becomes negative; (b) timing means for timing out a predetermined interval after the moving average slope becomes negative; and (c) second negative slope determining means for determining that the moving average slope is negative as the predetermined interval is concluded.
 73. The device of claim 71 wherein the stimulation means includes means for commencing stimulation immediately upon detection of the inspiratory turn point.
 74. The device of claim 71 wherein the stimulation means includes means for commencing stimulation in a next respiratory cycle following detection of the inspiratory turn point.
 75. The device of claim 74 wherein the stimulation means comprises:(a) cycle determining means for determining a representative respiratory cycle time for the patient; (b) turn point detection means for determining when the inspiratory turn point is detected; and (c) stimulation determining means for determining a time for commencement of stimulation as a function of the respiratory cycle time and when the inspiratory turn point is detected.
 76. The device of claim 71 wherein the stimulation means includes means for concluding stimulation immediately upon detection of the inspiratory peak.
 77. A device for controlling stimulation of an upper airway muscle of a patient to relieve an airway obstruction, said patient having a respiratory cycle with an inspiratory phase, said stimulation synchronized with the inspiratory phase of the patient's respiratory cycle comprising:(a) turn point monitoring means for monitoring a respiratory effort waveform of the patient for a change characteristic of an inspiratory turn point; (b) stimulation commencing means for commencing stimulation in response to a detected inspiratory turn point; (c) time monitoring means for monitoring elapsed time since detection of the inspiratory turn point; (d) peak monitoring means for monitoring the respiratory effort waveform for an inspiratory peak; (e) stimulation concluding means for concluding stimulation upon the earlier of (1) detection of the inspiratory peak or (2) elapse of a predetermined period of time.
 78. The device of claim 77 wherein the turn point monitoring means comprises:(a) average slope determining means for determining moving average slope for the respiratory effort waveform; (b) slope determining means for determining a current slope for the respiratory effort waveform; and (c) comparison means for comparing the current slope with the moving average slope.
 79. The device of claim 78 wherein the means for determining a current slope comprises:(a) sensing means for sensing a signal characteristic of respiratory effort of the patient; (b) sampling means for sampling the sensed signal at a predetermined interval to provide a digitized respiratory effort waveform; and (c) difference means for determining a difference between a most recent amplitude and a next most recent amplitude of the respiratory effort waveform.
 80. The device of claim 77 wherein the stimulation commencing means includes means for commencing stimulation immediately upon detection of the inspiratory turn point.
 81. The device of claim 77 wherein the stimulation commencing means includes means for commencing stimulation in a next respiratory cycle following detection of the inspiratory turn point.
 82. The device of claim 81 wherein the means for commencing stimulation during a next respiratory cycle comprises:(a) cycle time determining means for determining a representative respiratory cycle time for the patient; (b) turn point detection means for determining when the inspiratory turn point is detected; (c) commencement determining means for determining a time for commencement of stimulation as a function of the respiratory cycle time and when the inspiratory turn point is detected.
 83. The device of claim 77 wherein means for monitoring for the inspiratory peak comprises:(a) negative slope determining means for identifying when a moving average slope for the waveform first becomes negative; (b) timing means for timing out a predetermined interval; and (c) means for determining that the moving average slope is negative as the predetermined interval is concluded.
 84. A device for controlling stimulation of an upper airway muscle of a patient to relieve an airway obstruction, said patient having a respiratory cycle with an inspiratory phase, said stimulation synchronized with the inspiratory phase of the patient's respiratory cycle comprising:(a) waveform monitoring means for monitoring a respiratory effort waveform of the patient; (b) turn point detection means for detecting a change in the respiratory effort waveform characteristic of an inspiratory turn point; (c) stimulation commencement means for commencing stimulation in response to a detected inspiratory turn point; (d) artifact monitoring means for monitoring the respiratory effort waveform for an artifact not characteristic of normal respiratory activity; and (e) stimulation suppressing means for suppressing stimulation upon detection of the artifact.
 85. The device of claim 84 wherein the artifact detecting means comprises:(a) parameter monitoring means for monitoring the respiratory effort waveform for at least one parameter of the waveform characteristic of a body movement or a cough; and (b) comparison means for comparing at least one value for the parameter with a predetermined limit.
 86. The device of claim 85 wherein the monitored parameter is selected from the group consisting of inspiratory rise time, inspiratory time-to-peak, time of inspiratory onset to expiratory offset, inspiratory peak-to-peak time, expiratory peak-to-peak time and breath-to-breath time.
 87. A device for controlling stimulation of an upper airway muscle of a patient to relieve an airway obstruction, said patient having a respiratory cycle with an inspiratory phase, said stimulation synchronized with the inspiratory phase of the patient's respiratory cycle comprising:(a) waveform monitoring means for monitoring a respiratory effort waveform of the patient; (b) turn point detection means for detecting a change in the respiratory effort waveform characteristic of an inspiratory turn point; (c) stimulation commencement means for commencing stimulation in response to the detected inspiratory turn point; (d) artifact monitoring means for monitoring the respiratory effort waveform for an artifact not characteristic of normal respiratory activity; (e) artifact detecting means for detecting an artifact in the waveform; and (f) stimulation suppressing means for suppressing stimulation upon detection of the artifact,wherein the turn point detection means comprises: (1) average slope determining means for determining a moving average slope for the respiratory effort waveform; (2) current slope determining means for determining a current slope for the respiratory effort waveform; and (3) comparison means for comparing the current slope with the moving average slope.
 88. The device of claim 87 wherein the current slope determining means comprises:(a) sensing means for sensing a signal characteristic of respiratory effort of the patient; (b) sampling means for sampling the sensed signal at a predetermined interval to provide a digitized respiratory effort waveform; and (c) difference means for determining a difference between a most recent amplitude and a next most recent amplitude of the respiratory effort waveform.
 89. A device for providing stimulation of an upper airway muscle of a patient to relieve an airway obstruction, said patient having a respiratory cycle with an inspiratory phase, said stimulation synchronized with the inspiratory phase of the patient's respiratory cycle comprising:(a) sensing means for sensing a signal characteristic of respiratory effort of the patient; (b) sampling means for sampling the signal at a predetermined interval to provide a digitized respiratory effort waveform; (c) average slope determining means for determining a moving average slope for the respiratory effort waveform; (d) current slope determining means for determining a current slope for the respiratory effort waveform; (e) turn point determining means for comparing the current slope with the moving average slope to determine an inspiratory turn point by a current slope that is in a range of about 1.5 to 5 times the moving average slope; and (g) stimulation commencement means for commencing stimulation of the upper airway muscle according to the detected inspiratory turn point.
 90. The device of claim 89 wherein the average slope determining means comprises:(a) difference determining means for determining a difference between an amplitude value for a sample interval and an immediately preceding sample interval; (b) average determining means for determining an average of differences for a plurality of successive sample intervals; and (c) average redetermining means for redetermining an average at each sample interval.
 91. The device of claim 89 wherein the stimulation commencement means includes means for commencing stimulation immediately upon detection of the inspiratory turn point.
 92. The device of claim 89 wherein the stimulation commencement means includes means for commencing stimulation in a next respiratory cycle following detection of the inspiratory turn point.
 93. A device for providing stimulation of an upper airway muscle of a patient to relieve an airway obstruction, said patient having a respiratory cycle with an inspiratory phase, said stimulation synchronized with the inspiratory phase of the patient's respiratory cycle comprising:(a) sensing means for sensing a signal characteristic of respiratory effort of the patient; (b) sampling means for sampling the sensed signal at a predetermined interval to provide a digitized respiratory effort waveform; (c) amplitude determining means for determining highest and lowest amplitude values of the digitized waveform for a plurality of successive respiratory cycles; (d) difference determining means for determining a difference between highest and lowest amplitude values for each of the plurality of respiratory cycles; (e) average determining means for determining an average of the plurality of amplitude value differences; (f) trigger value determining means for determining an amplitude trigger value as a function of the average amplitude difference; (g) turn point determining means for detecting an inspiratory turn point by attainment of the amplitude trigger value in the respiratory effort waveform; and (h) stimulation commencement means for commencing stimulation in response to the detected inspiratory turn point.
 94. The device of claim 93 wherein the stimulation commencement means includes means for commencing stimulation immediately upon detection of the inspiratory turn point.
 95. The device of claim 93 wherein the stimulation commencement means includes means for commencing stimulation in a next respiratory cycle following detection of the inspiratory turn point.
 96. The device of claim 95 wherein the means for commencing stimulation in a next respiratory cycle comprises:(a) cycle time determining means for determining representative respiratory cycle time for the patient; (b) turn point detecting means for determining when the inspiratory turn point is detected; (c) means for determining a time for commencement of stimulation as a function of the respiratory cycle time and when the inspiratory turn point is detected. 